<?php
namespace app\api\controller\wxapp;

use app\api\controller\Controller;
use app\common\model\WxappPop as PopModel;

class Pop extends Controller {


    public function getData(){
        $model = new PopModel;
        $d = $model->getDefault();
        $data['image']=$d['image']['file_path'];
        if($data){
            return $this->renderSuccess($data, '数据获取成功');
        } else {
            return $this->renderError('数据获取失败');
        }
    }

}